import 'package:aliyun_vod_upload/model/vodInfoModel.dart';

class UploadFileInfoModel {
  UploadFileInfoModel({
      this.isStreamFile,
      this.filePath,
      this.endpoint,
      this.bucket,
      this.object,
      this.vodInfo,
      this.state,});

  UploadFileInfoModel.fromJson(dynamic json) {
    print('内部处理${json.runtimeType}');
    isStreamFile = json['isStreamFile'];
    filePath = json['filePath'];
    endpoint = json['endpoint'];
    bucket = json['bucket'];
    object = json['object'];
    vodInfo = json['vodInfo'] != null ? VodInfoModel.fromJson(json['vodInfo']) : null;
    state = json['state'];
  }
  bool? isStreamFile;
  String? filePath;
  String? endpoint;
  String? bucket;
  String? object;
  VodInfoModel? vodInfo;
  int? state;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['isStreamFile'] = isStreamFile;
    map['filePath'] = filePath;
    map['endpoint'] = endpoint;
    map['bucket'] = bucket;
    map['object'] = object;
    if (vodInfo != null) {
      map['vodInfo'] = vodInfo?.toJson();
    }
    map['state'] = state;
    return map;
  }

}
